<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script>


</script>
</head>
<body>


<script>

var w = document.documentElement.clientWidth;
	// 返回值不包含滚动条的宽度
var h = document.documentElement.clientHeight;
	// 返回值不包含滚动条的宽度

var w = document.body.clientWidth; 
var h = document.body.clientHeight;


var w = document.documentElement.clientWidth || document.body.clientWidth;
var h = document.documentElement.clientHeight || document.body.clientHeight;



</script>


</body>
</html> 
